package com.guoyansoft.config;

import java.util.Date;

/**
 * @author 刘耀诚
 * 获取时差
 */
public class GetTimeDifference {
    public static double getHourDifference(Date start,Date end){
        long startTime = start.getTime();
        long endTime = end.getTime();
        return (double) ((endTime - startTime)*1.0 / (1000 * 60 * 60));
    }
}
